<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.photo.*"%>
<%@ page import="com.business.photo.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>增加日志分类</title>
</head>

<body style="	font-size: 9pt;
	line-height: 150%;
	color: #000000;
	text-decoration: none;">
<%	String type=request.getParameter("id");
	int typeId=Integer.parseInt(type);
	PhotoTypeBus ptb=new PhotoTypeBus();
	PhotoType pt=ptb.getPhotoTypeById(typeId);
	
%>
<form id="addphotoform" name="addphotoform" method="post" action="/managephototype">
  <p>分类名称：
    <label>
    <input name="phototypename" type="text" value="<%=pt.getPhototypeName()%>" />
    </label>
  </p>
  <p>简要描述（100字符内）：
    <input name="phototypememo" type="text" value="<%=pt.getPhototypeMemo()%>" />
  </p>
  
	<input type="hidden" name="username" value="<%=pt.getUsername()%>"/>
	<input type="hidden" name="id" value="<%=typeId%>"/>
       <p>

	  <label>
		<br />
 <input name="edit" type="submit" id="edit" value=" 编辑 ">
      </label>
  </p>
</form>
</body>
</html>
